package com.sjg.sys.quartz;

import org.quartz.DisallowConcurrentExecution;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * <p>@Title  标题</p>
 * <p>@Description  描述</p>
 * <p>@Version 1.0.0 版本号</p>
 * <p>@author Fu qingjian 作者</p>
 * <p>@date 2017/5/3 创建日期</p>
 * <p>fuqingjian@dgg.net 作者的公司邮箱</p>
 */
@DisallowConcurrentExecution
public class QuartzJobTemplate  implements Job{
    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        System.out.println(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()) + "★★★★★★★★★★★");
    }
}
